package com.shanhy.springmvc.feign;

import org.springframework.stereotype.Component;

@Component
public class ExampleHystrixFeignFallBackFactory 
//implements FallbackFactory<ExampleFeignClient> 
{

//	private static final Logger LOG = LoggerFactory.getLogger(ExampleHystrixFeignFallBackFactory.class);
//
//	@Override
//	public ExampleFeignClient create(Throwable cause) {
//
//		LOG.error("fallback; reason was: " + cause.getMessage(), cause);
//
//		return new ExampleFeignClient() {
//
//			@Override
//			public ResultVO demo10(String id) {
//				return ResultVO.FAIL;
//			}
//		};
//	}

}
